<template>
  <div class="container box">
    <h1>{{prom.title}}</h1>
    <span>发布于：{{prom.time}}</span>
    <p>{{ prom.content }}</p>
  </div>
</template>

<script>
import {PromotionGetShow} from "@/request/api"
export default {
  data(){
    return{
        id:this.$route.params.id,
        prom:{}
    }
  },
  async mounted(){
    let res = await PromotionGetShow(this.id);
    this.prom = res.data.data;
  }
}
</script>

<style scoped>
.box{
    text-align: center;
}
</style>
